<?php 
session_start();
?>
<?php require_once('Conection_DataBase.php') ?>
<?
mysql_select_db($database_jssue, $jssue);
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Alumnos Por Carrera</title>
<script type="text/javascript" src="Aplicacion_Java/prototype.js"></script>
<script type="text/javascript">
function carr(){
var a=new Ajax.Request('Seleccion.php',{parameters:Form.serialize("form1"), method:'post',
onComplete:function(){
   var a=new Ajax.Updater('NvoMov','BaseNotas2.php',{evalScripts:true});
}});
}

function report12(fe,carre){
	var p="fe="+fe;
	var a=new Ajax.Request('Varvar.php',{parameters:Form.serialize("form1"), method:'post'});
	var URL = "RepNotas.php?carrera="+carre;
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=1000,height=500,left = 682.5,top = 412.5');");
}

function setCar(c){
  $("carrera").value=c.options[c.selectedIndex].text;
}

</script>
<link href="../../../bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css" />
<link href="../../../css/ContentStyle.css" rel="stylesheet" type="text/css" />
</head>

<body>
    <div id="tabs">
        <ul class="nav nav-tabs">
            <li class="active" style="font-weight: bolder">
                <a>Estudiantes por carrera</a>
            </li>
        </ul>
    </div>
<form id="form1" name="form1" method="post" action="Seleccion3.php">
  <table width="569" border="0" cellpadding="1" cellspacing="0" class="">
   
    <tr>
        <th colspan="2"><legend>Opciones para Reporte</legend></th>
    </tr>
    
    <tr>
      <td width="134" align="left">Carrera </td>
      <td width="429"><span id="spryselect1">
       <?php  
       $Querry_recordSet = "select * from cllg_career";
       $recordset = mysql_query($Querry_recordSet, $jssue) or die(mysql_error());
       //$rowRecordset=mysql_fetch_assoc($recordset); 
	   //$recordset = mysql_query($Querry_recordSet, $jssue) or die(mysql_error());
	   ?>
        <input type="hidden" name="carrera" id="carrera" value="<?= $rowRecordset['NAME']?>" />
        <select name="Cli1" id="Cli1"  onchange="setCar(this);loadCursos($('cli2'),this);">
	      <option selected="selected">-Seleccionar-</option>
          <?PHP while ($rowRecordset=mysql_fetch_assoc($recordset)){?>
          <option value="<?PHP echo $rowRecordset['ID']?>"><?PHP echo $rowRecordset['NAME']?></option>
          <?PHP }?>
        </select>
      <span class="selectRequiredMsg"></span></span></td>
    </tr>
    <tr>
      <td align="left">Ciclo</td>
      <td><span id="spryselect2">
        
        <select name="cli2" id="cli2">
          <option selected="selected">-Seleccionar-</option>
           <?PHP 
           $Querry_recordSet22 = "select * from cllg_college_cycle";
           $recordset22 = mysql_query($Querry_recordSet22, $jssue) or die(mysql_error());
           while ($rowRecordset22=mysql_fetch_assoc($recordset22)){?>
          <option value="<?PHP echo $rowRecordset22['CODE']?>"><?PHP echo $rowRecordset22['CODE']?></option>
          <?PHP }?>
		</select>
        
        <span class="selectRequiredMsg"></span></span></td>
    </tr>
    
    <tr>
        <td align="left">Jornada</td>
        <td align="left">
            <input name="LUNES" type="checkbox" id="LUNES" value="1" /> Lunes
            <input name="MARTES" type="checkbox" id="MARTES" value="1" /> Martes
            <input name="MIERCOLES" type="checkbox" id="MIERCOLES" value="1" /> Miercoles
            <input name="JUEVES" type="checkbox" id="JUEVES" value="1" /> Jueves
            <input name="VIERNES" type="checkbox" id="VIERNES" value="1" /> Viernes
            <input name="SABADO" type="checkbox" id="SABADO" value="1" /> Sabado
        </td>
    </tr>
    <tr>
      <td colspan="2" align="center"><label>
      <input name="button" type="submit" class="btn btn-info" id="button" value="Procesar..." />
      </label></td>
    </tr>
  </table>
</form>
</body>
</html>